const path = require('node:path');
const fs = require('node:fs/promises');


// promise 风格 url
const filename = path.resolve(__dirname, 'index.js')
fs.readFile(filename, 'utf8')
  .then(data => {
    console.log(data.toString())
  })
  .catch(error => {
    console.log(error)
  });
